<!DOCTYPE html>
<html>
<head>

    {% include 'public/header.phtml' %}

    <title>Materia - Admin Template</title>

</head>
<body id="app" class="app off-canvas">


{% include 'public/top.phtml' %}


<!-- main-container -->
<div class="main-container clearfix">


    {% include 'public/left.phtml' %}
    <!-- content-here -->
    <div class="content-container" id="content">
        <div class="page page-forms-elements">

            <ol class="breadcrumb breadcrumb-small">
                <li>菜单</li>
                <li class="active"><a href="#">编辑菜单</a></li>
            </ol>

            <div class="page-wrap">
                <!-- row -->
                <div class="row">

                    <!-- col-left -->
                    <div class="col-sm-12 col-md-6">
                        <div class="panel panel-default panel-hovered panel-stacked mb30">
                            <div class="panel-heading">编辑菜单</div>
                            <div class="panel-body">
                                <form role="form" class="form-horizontal" action="add" method="post"> <!-- form horizontal acts as a row -->

                                    <!--菜单分类-->
                                    <div class="form-group">
                                        <label class="col-md-3 control-label">菜单分类</label>
                                        <div class="col-md-9">
                                            <select class="form-control" name="cid">
                                                {% for nav_cat_list in nav_cat %}
                                                <option value="{{nav_cat_list.navcid}}">{{nav_cat_list.name}}</option>
                                                {% endfor %}
                                            </select>
                                        </div>
                                    </div>
                                    <!--父级-->
                                    <div class="form-group">
                                        <label class="col-md-3 control-label">父级</label>
                                        <div class="col-md-9">
                                            <select class="form-control" name="parentid">
                                                {% for nav_list in nav_list %}
                                                <option value="{{nav_list.id}}">{{nav_list.label}}</option>
                                                {% endfor %}
                                            </select>
                                        </div>
                                    </div>
                                    <!-- 标签 -->
                                    <div class="form-group">
                                        <label class="col-md-3 control-label">标签</label>
                                        <div class="col-md-9">
                                            <input type="text" class="form-control" name="label">
                                        </div>
                                    </div>
                                    <!--链接-->
                                    <div class="form-group">
                                        <label class="col-md-3 control-label">链接</label>
                                        <div class="col-md-9">
                                            <select class="form-control" name="href">
                                                {% for article_list in article %}
                                                <option value="{{article_list.url}}">{{article_list.title}}</option>
                                                {% endfor %}
                                            </select>
                                        </div>
                                    </div>
                                    <!--打开方式-->
                                    <div class="form-group">
                                        <label class="col-md-3 control-label">打开方式</label>
                                        <div class="col-md-9">
                                            <select class="form-control" name="target">
                                                <option value="_self">默认</option>
                                                <option value="_blank">新窗口</option>
                                            </select>
                                        </div>
                                    </div>


                                    <div class="ui-checkbox ui-checkbox-primary">
                                        <label>
                                            <input type="checkbox" name="status" value="1" checked="">
                                            <span>显示</span>
                                        </label>
                                    </div>


                                    <div class="clearfix right">
                                        <button class="btn btn-primary mr5" type="submit">添加</button>
                                        <button class="btn btn-default"><a href="/nav/index" style="color: #000;">返回</a></button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div> <!-- #end col-left -->


                </div>
                <!-- #end row -->


            </div> <!-- #end page-wrap -->
        </div> <!-- #end page -->
    </div> <!-- #end content-container -->

</div> <!-- #end main-container -->


<!-- theme settings -->
<div class="site-settings clearfix hidden-xs">
    <div class="settings clearfix">
        <div class="trigger ion ion-settings left"></div>
        <div class="wrapper left">
            <ul class="list-unstyled other-settings">
                <li class="clearfix mb10">
                    <div class="left small">Nav Horizontal</div>
                    <div class="md-switch right">
                        <label>
                            <input type="checkbox" id="navHorizontal">
                            <span>&nbsp;</span>
                        </label>
                    </div>


                </li>
                <li class="clearfix mb10">
                    <div class="left small">Fixed Header</div>
                    <div class="md-switch right">
                        <label>
                            <input type="checkbox"  id="fixedHeader">
                            <span>&nbsp;</span>
                        </label>
                    </div>
                </li>
                <li class="clearfix mb10">
                    <div class="left small">Nav Full</div>
                    <div class="md-switch right">
                        <label>
                            <input type="checkbox"  id="navFull">
                            <span>&nbsp;</span>
                        </label>
                    </div>
                </li>
            </ul>
            <hr/>
            <ul class="themes list-unstyled" id="themeColor">
                <li data-theme="theme-zero" class="active"></li>
                <li data-theme="theme-one"></li>
                <li data-theme="theme-two"></li>
                <li data-theme="theme-three"></li>
                <li data-theme="theme-four"></li>
                <li data-theme="theme-five"></li>
                <li data-theme="theme-six"></li>
                <li data-theme="theme-seven"></li>
            </ul>
        </div>
    </div>
</div>
<!-- #end theme settings -->




<!-- Dev only -->
{% include 'public/footer.phtml' %}
<script src="<?=JS_PATH?>select2.min.js"></script>
<script src="<?=JS_PATH?>bootstrap-colorpicker.min.js"></script>
<script src="<?=JS_PATH?>bootstrap-slider.min.js"></script>
<script src="<?=JS_PATH?>summernote.min.js"></script>
<script src="<?=JS_PATH?>bootstrap-datepicker.min.js"></script>
<script src="<?=JS_PATH?>form-elements.init.js"></script>

</body>
</html>

